{extend name="Public:content"}
{block name="style"}
<style type="text/css">
    .form-horizontal .control-label{padding-top: 0px;}
    .td-text-center tr th,.td-text-center tr td{text-align: center !important;}
    .logo-Imge{width:62px;height: 62px;border-radius: 50%;-webkit-border-radius: 50%;}
</style>
{/block}
{block name="content"}
<div class="row m-b-lg">
    <div class="col-lg-4">
        <div class="m-b-sm">
            <div class="logo-Imge" style="background: url('{$vo.logo|default="__STATIC__/index/images/author.png"}') no-repeat center; background-size:cover; -webkit-background-size:cover;"></div>
            <!--<img alt="头像" class="img-circle" src="{$vo.logo|default='__PUBLIC__/web/WeChat/portrait.png'}" style="width: 62px">-->
        </div>
    </div>
    <div class="col-lg-8">
        <h3>基本信息</h3>
        <div class="col-sm-4 form-horizontal">
            <div class="form-group">
                <label class="col-sm-5 control-label">用户名：</label>
                <div class="col-sm-7">{$vo.username}</div>
            </div>
            <div class="form-group">
                <label class="col-sm-5 control-label">账号：</label>
                <div class="col-sm-7 text-left">{$vo.nickname}</div>
            </div>
            <div class="form-group">
                <label class="col-sm-5 control-label">真实姓名：</label>
                <div class="col-sm-7 text-left">{$vo.rename}</div>
            </div>
        </div>
        <div class="col-sm-4 text-center form-horizontal">
            <div class="form-group">
                <label class="col-sm-5 control-label">状态：</label>
                <div class="col-sm-7 text-left">{$vo.status == 1 ? '启用':'禁用'}</div>
            </div>
            <div class="form-group">
                <label class="col-sm-5 control-label">会员积分：</label>
                <div class="col-sm-7 text-left">{$vo.integral}</div>
            </div>
            <div class="form-group">
                <label class="col-sm-5 control-label">生日：</label>
                <div class="col-sm-7 text-left">{:format_datetime($vo.birthday,'Y年m月d日')}</div>
            </div>
        </div>
        <div class="col-sm-4 text-right form-horizontal">
            <div class="form-group">
                <label class="col-sm-5 control-label">注册IP：</label>
                <div class="col-sm-7 text-left">{$vo.ip}</div>
            </div>
            <div class="form-group">
                <label class="col-sm-5 control-label">地区：</label>
                <div class="col-sm-7 text-left">{$vo.province} {$vo.city}</div>
            </div>
            <div class="form-group">
                <label class="col-sm-5 control-label">注册时间：</label>
                <div class="col-sm-7 text-left">{$vo.create_at}</div>
            </div>
        </div>
    </div>
</div>
<div class="client-detail">
    <div class="full-height-scroll">
        <strong>积分明细</strong>
        <div class="table-responsive m-t">
            <table class="table invoice-table td-text-center">
                <thead>
                    <tr>
                        <th>用户名</th><th>积分</th><th>来源</th><th>操作者</th><th>添加时间</th>
                    </tr>
                </thead>
                <tbody>
                    {foreach $vo.scorelog_lists as $list}
                    <tr><td>{$vo.username}</td><td>{$list.type == 1? '+':'-'}{$list.score}</td><td>{$list.from}</td><td>{$list.operator}</td><td>{$list.create_at|format_datetime}</td></tr>
                    {/foreach}
                </tbody>
            </table>
        </div>
    </div>
</div>

</div>
{/block}

